<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="ie6 ielt7 ielt8 ielt9"><![endif]--><!--[if IE 7 ]><html lang="en" class="ie7 ielt8 ielt9"><![endif]--><!--[if IE 8 ]><html lang="en" class="ie8 ielt9"><![endif]--><!--[if IE 9 ]><html lang="en" class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><!--<![endif]-->
	<head>
		<meta charset="utf-8">
		<title>Login</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link href="css/bootstrap1.min.css" rel="stylesheet">
		<link href="css/bootstrap1-responsive.min.css" rel="stylesheet">
		<link href="css/site.css" rel="stylesheet">
		<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	</head>
	<body>
		<div id="login-page" class="container">
			<h1>登录</h1>
			<form id="login-form" class="well" th:action="@{/login}" method="post">
				<p style="color:red" th:text="${error}" th:if="${not #strings.isEmpty(error)}"></p>
				<p style="color:red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
				<select th:name="identity" class="form-control">
					<option th:value="manager" >管理员</option>
					<option th:value="tenant" selected>租客</option>
					<option th:value="house_owner" >房主</option>
				</select>
				<input th:name="name" type="text" class="span2" placeholder="用户名" /><br />
				<input th:name="password" type="password" class="span2" placeholder="密码" /><br />
				<button type="submit" class="btn btn-primary">登录</button>
				<a th:href="@{/toOwnReg}" class="btn">房主注册</a>
				<a th:href="@{/toTenReg}" class="btn">租客注册</a>
			</form>
		</div>
		<script src="js/jquery.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/site.js"></script>
	</body>
</html>